import json
import os
import time
import zipfile
import random

#作业归属人
owner = 'guoziqing'
#作业归属目录
directory = '/PRD/PRD_SDI/ICS'

# 调度集群名称
clustername = 'cdm-hq04'

start_time = time.strftime('%Y-%m-%dT%H:%M:%S+08')

with open("../BATCH_DWI_FIN_ALL_MBR_LABOR_PRD_RATE_D_F_MID.job","r",encoding="utf-8") as f:
    with open("test.json",'w',encoding="utf-8") as out:
        jsonobj = json.load(f)
        jsonobj["basicConfig"]["owner"]= owner
        jsonobj["directory"] = directory
        jsonobj["name"] = "BATCH_DWI_FIN_ALL_MBR_LABOR_PRD_RATE_D_F_MID"